package io.zhifei.modules.sys.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.zhifei.modules.sys.system.entity.SysFileEntity;
import io.zhifei.modules.sys.system.entity.SysRoleEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * 后台文件上传
 *
 * @ClassNameSysFileService
 * @Description
 * @Author
 * @Date2020/11/13 8:59
 * @Version V1.0
 **/

public interface SysFileService extends IService<SysFileEntity> {
    /**
     * 视频上传
     *
     * @param multipartFile
     * @param filePath
     * @return
     * @throws IOException
     */
    SysFileEntity addFile(MultipartFile multipartFile, SysFileEntity sysFileEntity, String filePath,String resultPath) throws Exception;

    /***
     * 图片文件上传
     * @param multipartFile
     * @param filePath
     * @return
     */
    SysFileEntity addImageFile(MultipartFile multipartFile, SysFileEntity sysFileEntity, String filePath,String resultPath) throws IOException;

    /**
     * 视频上传
     *
     * @param videoPath
     * @return
     * @throws IOException
     */
    SysFileEntity addFileByPath(SysFileEntity sysFileEntity,String videoPath, String filePath, String resultPath)throws Exception;

}
